#@layout()
<script>
    $("#fairbankno-edit").validate({
        rules:{
                "fairbankno.wh_id":{
                    required:true
                },
                "fairbankno.bank":{
                    required:true
                },
                "fairbankno.bank_no":{
                    required:true
                },
                "fairbankno.deletetag":{
                    required:true
                },
                "fairbankno.create_time":{
                    required:true
                },
                "fairbankno.real_name":{
                    required:true
                }
        },
        messages:{

                "fairbankno.wh_id":{
                required:"请输入网红ID..."
                },
                "fairbankno.bank":{
                required:"请输入银行名称..."
                },
                "fairbankno.bank_no":{
                required:"请输入银行卡号..."
                },
                "fairbankno.deletetag":{
                required:"请输入删除标识..."
                },
                "fairbankno.create_time":{
                required:"请输入创建时间..."
                },
                "fairbankno.real_name":{
                required:"请输入真实姓名..."
                }
        },
        onkeyup:false,
        focusCleanup:true,
        success:"valid",
        submitHandler:function(form){
        var config = {
        "url":"/admin/fairbankno/updateById",
        data:$("#fairbankno-edit").serialize(),
        "method":"POST"
        };
        var backendTool = new BackendTool(config);
        backendTool.ajaxRequest();
        }
    });
</script>
#define main()
    <form class="form form-horizontal" id="fairbankno-edit">
    #include("fairbankno-form.html")
    </form>
#end